package mark.tom.fiter.json;

import org.json.JSONArray;
import org.json.JSONException;

public class BaseJSONArray extends JSONArray {

    public BaseJSONArray() {
        super();
    }

    public BaseJSONArray(String json) throws JSONException {
        super(json);
    }

    @Override
    public JSONArray put(boolean value) {
        try {
            return super.put(value);
        } catch (Exception ex) {
            // Ignore
        }
        return this;
    }

    @Override
    public JSONArray put(double value) {
        try {
            return super.put(value);
        } catch (Exception ex) {
            // Ignore
        }
        return this;
    }

    @Override
    public JSONArray put(int value) {
        try {
            return super.put(value);
        } catch (Exception ex) {
            // Ignore
        }
        return this;
    }

    @Override
    public JSONArray put(long value) {
        try {
            return super.put(value);
        } catch (Exception ex) {
            // Ignore
        }
        return this;
    }

    @Override
    public JSONArray put(Object value) {
        try {
            return super.put(value);
        } catch (Exception ex) {
            // Ignore
        }
        return this;
    }

    @Override
    public JSONArray put(int index, boolean value) {
        try {
            return super.put(index, value);
        } catch (Exception ex) {
            // Ignore
        }
        return this;
    }

    @Override
    public JSONArray put(int index, double value) {
        try {
            return super.put(index, value);
        } catch (Exception ex) {
            // Ignore
        }
        return this;
    }

    @Override
    public JSONArray put(int index, int value) {
        try {
            return super.put(index, value);
        } catch (Exception ex) {
            // Ignore
        }
        return this;
    }

    @Override
    public JSONArray put(int index, long value) {
        try {
            return super.put(index, value);
        } catch (Exception ex) {
            // Ignore
        }
        return this;
    }

    @Override
    public JSONArray put(int index, Object value) {
        try {
            return super.put(index, value);
        } catch (Exception ex) {
            // Ignore
        }
        return this;
    }
}
